package com.achievement.domain.dto;

import com.achievement.domain.dto.author.MedicineAuthorDTO;
import com.common.validate.edit;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "药证DTO")
public class MedicineDTO {
    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = {edit.class})
    private String id;
    @ApiModelProperty(value = "药证名称")
    private String name;
    @ApiModelProperty(value = "药证号")
    private String code;
    @ApiModelProperty(value = "批准单位")
    private String authorizeUnit;
    @ApiModelProperty(value = "批准日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date authorizeDate;
    @ApiModelProperty(value = "药证分类")
    private String typeId;
    @ApiModelProperty(value = "所属单位")
    private String unitId;
    @ApiModelProperty(value = "证书电子版")
    private String fileIds;
    @ApiModelProperty(value = "备注")
    private String note;
    @ApiModelProperty(value = "")
    private String divisionId;
    @ApiModelProperty(value = "审核状态")
    private String checkstatus;

    @ApiModelProperty(value = "药证完成人列表")
    private List<MedicineAuthorDTO> authorList;

    @ApiModelProperty(value = "提交类型 -> -1:暂存,1:提交,2:保存并通过")
    private Integer submitType;

    private Boolean isAuditor;

    private String taskId;
}
